cmake_minimum_required(VERSION 3.0)
project(gtest)

include_directories(${PROJECT_SOURCE_DIR})
include_directories(googletest)

aux_source_directory(. TEST_SOURCES)

enable_testing()
add_subdirectory(googletest)

set(BINARY ${CMAKE_PROJECT_NAME}_test)
add_executable(${BINARY} ${TEST_SOURCES})
target_link_libraries(${BINARY}
        gtest
        gtest_main)